package cc.mrbird.febs.buss.service;

import cc.mrbird.febs.buss.entity.Policy;

import cc.mrbird.febs.common.entity.QueryRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.HashMap;

import java.util.List;

/**
 *  Service接口
 *
 * @author Lujingyuan
 * @date 2020-11-26 10:26:58
 */
public interface IPolicyService extends IService<Policy> {

    /**
     * 查询（所有）
     *
     * @param policy policy
     * @return List<Policy>
     */
    List<Policy> findPolicys(Policy policy);
    IPage<Policy> findPolicyDetail(QueryRequest request, HashMap<String, String> map);
    /**
     * 新增
     *
     * @param policy policy
     */
    void createPolicy(Policy policy);

    /**
     * 修改
     *
     * @param policy policy
     */
    void updatePolicy(Policy policy);

    /**
     * 删除
     *
     * @param policy policy
     */
    void deletePolicy(Policy policy);

    /**
    * 删除
    * @param ids
    */
    void deletePolicy(String[] ids);

    /**
     * 根据部门Id查询对应的政策列表
     * @return
     */
    List<Policy> getListByDeptId(String deptId);
}
